package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.InitialDataReportingServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName:InitialDataReportingService
 * @功能：初始数据相关的Feign接口
 * @author：wlei
 * @日期：2022/7/21-01:07
 **/
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = InitialDataReportingServiceFallback.class)
public interface InitialDataReportingService {

    @GetMapping("/cdcerserver/v1/initialdatareporting/listAllTableColumn")
    JsonObj listAllTableColumn();

    @GetMapping("/cdcerserver/v1/initialdatareporting/listAllTableColumn4Office")
    JsonObj listAllTableColumn4Office();

    @GetMapping("/cdcerserver/v1/initialdatareporting/findRecord")
    JsonObj findById(@RequestParam("id") String id);

    @PostMapping("/cdcerserver/v1/initialdatareporting/deleteById")
    JsonObj deleteById(PageData pageData);

    @PostMapping("/cdcerserver/v1/initialdatareporting/updateRecord")
    JsonObj updateRecord(PageData pageData);


}
